package com.netposa.datawarehouse.statistics.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(
   prefix = "machine.state"
)
public class MachineStateDataConfig {
   private Boolean dataMock;

   public Boolean getDataMock() {
      return this.dataMock;
   }

   public void setDataMock(Boolean dataMock) {
      this.dataMock = dataMock;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof MachineStateDataConfig)) {
         return false;
      } else {
         MachineStateDataConfig other = (MachineStateDataConfig)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$dataMock = this.getDataMock();
            Object other$dataMock = other.getDataMock();
            if (this$dataMock == null) {
               if (other$dataMock != null) {
                  return false;
               }
            } else if (!this$dataMock.equals(other$dataMock)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof MachineStateDataConfig;
   }

   public int hashCode() {
      
      int result = 1;
      Object $dataMock = this.getDataMock();
      result = result * 59 + ($dataMock == null ? 43 : $dataMock.hashCode());
      return result;
   }

   public String toString() {
      return "MachineStateDataConfig(dataMock=" + this.getDataMock() + ")";
   }
}
